<!DOCTYPE html>
<html lang="en"> 
    <head> 
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
        <!-- 1.安装echarts后,引入js文件 --> 
        <!-- <script src="/Script/echarts.min.js"></script> -->
        <script src="https://cdn.staticfile.org/echarts/4.3.0/echarts.min.js"></script>
        <title>Parkingarea</title>
    </head> 
    <body> 
        <!-- 定义显示图标的div --> 
        <div id="echart" style="width: 1200px;height: 600px;"></div>
        <script> // 初始化 echarts 实例 
            var echart = echarts.init(document.getElementById('echart')) // 配置图表所需的数据 
            var option = { 
                title:{
                    text: 'Parkingarea'
                }, 
                xAxis: {
                    data: ['A', 'B','C'] 
                },
                yAxis: {},
                series: {
                    type: 'bar', 
                    data: [26,16,0]
                }
                
            } // 调用 setOption 方法绘制图表
            echart.setOption(option) 
        </script> 
    </body> 
</html>
`